/*
 * @Date: 2023-05-10 18:07:03
 * @LastEditTime: 2023-05-10 18:29:51
 * @FilePath: /liveness/src/api/module/liveness.ts
 * 介绍:
 */
import { defaHttp, ApiRes } from "../index";

/**获取游戏余额 */
export async function apiCoinGameBalance(
  data: CoinGameBalance.Req
): Promise<void | CoinGameBalance.Res> {
  const res = await defaHttp.post<ApiRes<CoinGameBalance.Res>>(
    "/user/get/session_id",
    data
  );
  if (res.code !== 200) return;
  return res.data;
}
/**获取游戏余额 */
export namespace CoinGameBalance {
  export interface Req {
    coin_id: StrNumber;
  }
  export interface Res {
    session_id: string;
  }
}
